package com.iwhalecloud.bss.kite.cucc.client.vo.scene;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <Description> 产品包-服务提供，相比核心新增是否可编辑、勾选标识字段 <br>
 * @author chen.kaiwen<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2020-12-10 <br>
 * @see com.iwhalecloud.bss.kite.cucc.client.vo.scene.CuccServiceOfferVo <br>
 */
@ApiModel(value = "ServiceOfferVO", description = "服务提供")
@SuppressFBWarnings(value = "EQ_COMPARETO_USE_OBJECT_EQUALS", justification = "Note: this class has a natural ordering that is inconsistent with equals.")
public class CuccServiceOfferVo implements Comparable<CuccServiceOfferVo>{
    private String id;

    @ApiModelProperty("服务提供名称")
    private String name;

    private String serviceOfferAdsc;

    @ApiModelProperty("服务提供标识")
    private String serviceOfferId;

    private String operateType;

    @ApiModelProperty("重要业务标识 0 一般业务 1 重要业务")
    private String importantBusiness;

    @ApiModelProperty("菜单是否可编辑")
    private String  isEdit = "1";


    @ApiModelProperty("当前商品分类id")
    private String cateId;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty(value = "服务提供勾选标识")
    private String checkedFlag;

    @ApiModelProperty(value = "操作类型依赖者")
    private String relyon;

    @ApiModelProperty(value = "操作类型被依赖者")
    private String quiltRelyon;

    public String getRelyon() {
        return relyon;
    }

    public void setRelyon(String relyon) {
        this.relyon = relyon;
    }

    public String getQuiltRelyon() {
        return quiltRelyon;
    }

    public void setQuiltRelyon(String quiltRelyon) {
        this.quiltRelyon = quiltRelyon;
    }

    public String getImportantBusiness() {
        return importantBusiness;
    }

    public void setImportantBusiness(String importantBusiness) {
        this.importantBusiness = importantBusiness;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getServiceOfferAdsc() {
        return serviceOfferAdsc;
    }

    public void setServiceOfferAdsc(String serviceOfferAdsc) {
        this.serviceOfferAdsc = serviceOfferAdsc;
    }

    public String getServiceOfferId() {
        return serviceOfferId;
    }

    public void setServiceOfferId(String serviceOfferId) {
        this.serviceOfferId = serviceOfferId;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    @Override
    public int compareTo(CuccServiceOfferVo o) {
        String[]ids = this.id.split("_");
        String[]ids1 = o.getId().split("_");
        int id = Integer.parseInt(ids[0]);
        int id2 = Integer.parseInt(ids1[0]);
        return id - id2;
    }

    public String getIsEdit() {
        return isEdit;
    }

    public void setIsEdit(String isEdit) {
        this.isEdit = isEdit;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCateId() {
        return cateId;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public String getCheckedFlag() {
        return checkedFlag;
    }

    public void setCheckedFlag(String checkedFlag) {
        this.checkedFlag = checkedFlag;
    }
}
